from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from app.routes.login import router as login_router
from fastapi.templating import Jinja2Templates

app = FastAPI()

# 包含API路由
app.include_router(login_router, prefix="/api")

# 添加首页重定向到登录页
@app.get("/")
async def root():
    return {"message": "请访问 /api/login 获取登录页面"}